#include<bits/stdc++.h>
using namespace std;
int n;
int arr[200005];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++)cin>>arr[i];
    sort(arr+1,arr+1+n);
    int j=1;
    for(int i=1;i<=n;i++){
        if(arr[i]>arr[j]) j++;
    }
    cout<<n-j+1;
    fclose(stdin);
    fclose(stdout);
	return 0;
}
/*
5
1 2 3 1 2
*/
